package com.zut.yyzx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;


@Data
@EqualsAndHashCode(callSuper = false)
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // "一级菜单索引"
    private String menusIndex;

    //"菜单标题"
    private String title;

    //"菜单图标"
    private String icon;

    //value = "菜单路径"
    private String path;

    //value = "父级Id"
    private Integer parentId;

    //value = "子菜单"
    @TableField(exist = false)//表示该属性不为数据库表字段
    private List<Menu>  children;
}
